package src.lab02.test01.Test20;

import java.util.Scanner;

public class Test20 {
    // 编写一个应用程序，用户从键盘输入一行含有数字和字符的字符串，程序仅仅输出字符串中的全部数字字符。
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        StringBuffer stringBuffer = new StringBuffer();
        System.out.println("请输入字符串：");
        String name = scanner.next();
        for (int i = 0; i < name.length(); i++) {
            if (name.charAt(i)>65){

        }else stringBuffer.append(name.charAt(i));


    }
    System.out.println(stringBuffer.toString());
    }


}
